package com.mysoft.gfyx.marketdevelop.service;

import com.mysoft.framework.modeling.dto.FieldsSetting;
import com.mysoft.framework.modeling.dto.ListDataResult;
import com.mysoft.framework.modeling.dto.LoadDataParams;
import com.mysoft.gfyx.marketdevelop.mip.dto.CheckSupplierMainDataResponseDto;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface SupplierService {
    FieldsSetting loadFields();

    ListDataResult loadData(LoadDataParams options);

    Map<String, Object> getSupplierMainData(String organizingCode);

    // 通过供应商名称列表获取供应商主档案
    List<CheckSupplierMainDataResponseDto> getSupplierMainDataMultiName(List<String> supplierNameList);

    Map<String, Object> processSupplier(Map<String, Object> supplierData);

    void processSupplierTag(ArrayList<Map<String, Object>> list);

    List<Map<String, Object>> export(LoadDataParams options);

    Map<String, Object> getSupplierContactMobile(String id);

    boolean checkSupplierMember(String companyName) throws Exception;
}
